export const totalDataO = [
  {
    label: '日均开启设备数',
    key: 'daysOpenMomentTotal',
    type: 'daysOpenMoment',
    unit: '个',
    precision: 0,
    icon: 'icon-shouji'
  },
  {
    label: '累计设备数',
    key: 'allOpenMomentTotal',
    type: 'allOpenMoment',
    unit: '个',
    precision: 0,
    icon: 'icon-shouji'
  },
  {
    label: '采集商品数',
    key: 'goodsTotal',
    type: 'goods',
    unit: '个',
    precision: 0,
    icon: 'icon-shangpin'
  },
  {
    label: '发商品总数',
    key: 'sendTotal',
    type: 'sendGoods',
    unit: '个',
    precision: 0,
    icon: 'icon-shangpin'
  }
]

export const graphDataChartOptionBar = {
  title: {
    text: '',
    left: 'center'
  },
  legend: {
    show: true,
    itemWidth: 14,
    itemHeight: 14
  },
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'cross',
      crossStyle: {
        color: '#999'
      }
    }
  },
  grid: {
    left: '3%',
    right: '4%',
    bottom: '3%',
    containLabel: true
  },
  xAxis: {
    name: '时间',
    type: 'category',
    alignTicks: true,
    axisLine: {
      lineStyle: {
        type: 'solid'
      },
      symbol: ['none'],
      symbolSize: [13, 20],
      symbolOffset: [0, 40]
    },
    data: []
  },
  yAxis: {
    type: 'value',
    scale: true
  },
  series: {
    data: [],
    color: '#5470C6',
    smooth: true,
    itemStyle: {
      normal: {
        lineStyle: {
          width: 2,
          type: 'solid'
        }
      }
    },
    type: 'line'
  }
}
